package com.syg.stock.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/stock")
public class StockController {

    // @Resource
    // private StockService stockService;
    //
    // @Resource
    // private Registration registration;
    //
    // @GetMapping(value = "/deduct/{productId}/{stockCount}")
    // public String deductStock(@PathVariable("productId") Long productId,
    //                           @PathVariable("stockCount") Integer stockCount) {
    //     return stockService.deductStock(productId, stockCount);
    // }
}
